﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomerDetails.ascx.cs"
    Inherits="UserControl_Customer" %>
<gr:Container ID="uxContainer" runat="server" HeaderText="Thông tin khách hàng" AllowExpandCollapse="true">
    <div class="ContainerInput">
        <table class="TableFourColumns" cellpadding="0" cellspacing="0">
            <tr>
                <td class="label">
                    <gr:Literal runat="server" ID="uxCustomerNameLabel">Tên khách hàng</gr:Literal>
                    <span class="required">(*)</span>
                </td>
                <td class="input">
                    <gr:TextBox ID="uxCustomerName" runat="server" Width="100%" MaxLength="50"></gr:TextBox>
                </td>
                <td class="label">
                    <gr:Literal runat="server" ID="uxPhoneLabel" Text="Điện thoại" />
                </td>
                <td class="input">
                    <gr:TextBox ID="uxPhone" runat="server" Width="50%" MaxLength="15"></gr:TextBox>
                </td>
            </tr>
            <tr>
                <td class="label">
                    <gr:Literal runat="server" ID="uxSocialIDLabel" Text="CMND" />
                </td>
                <td class="input">
                    <gr:TextBox ID="uxSocialID" runat="server" Width="100%" MaxLength="20"></gr:TextBox>
                </td>
                <td class="label">
                    <gr:Literal runat="server" ID="uxGenderLabel" Text="Giới tính" />
                </td>
                <td class="input">
                    <gr:GuruComboBox runat="server" Enabled="true" ID="uxGender" Width="50%">                     
                    </gr:GuruComboBox>
                </td>
            </tr>
            <tr>
                <td class="label">
                    <gr:Literal runat="server" ID="uxAddressLabel" Text="Địa chỉ" />
                </td>
                <td class="input">
                    <gr:TextBox ID="uxAddress" runat="server" Width="100%" MaxLength="200"></gr:TextBox>
                </td>
                <td class="label">
                    <gr:Literal runat="server" ID="uxEmailLabel" Text="Email" />
                </td>
                <td class="input">
                    <gr:TextBox ID="uxEmail" runat="server" Width="100%" MaxLength="100"></gr:TextBox>
                </td>
            </tr>
            <tr>
                <td class="label">
                    <gr:Literal runat="server" ID="uxNationalityLabel" Text="Quốc tịch" />
                </td>
                <td class="input">
                    <gr:TextBox ID="uxNationality" runat="server" Width="100%" MaxLength="50"></gr:TextBox>
                </td>
                <td class="label">
                    <gr:Literal runat="server" ID="uxPassportLabel" Text="Visa/Passport" />
                </td>
                <td class="input" valign="top">
                    <gr:TextBox ID="uxPassport" runat="server" Width="100%" MaxLength="50"></gr:TextBox>
                </td>
            </tr>
            <tr>
                <td class="label">
                    <gr:Literal runat="server" ID="uxCustomerTypeLabel" Text="Loại khách" />
                </td>
                <td class="input">
                    <gr:GuruComboBox runat="server" Enabled="true" ID="uxCustomerType" Width="100%">                       
                    </gr:GuruComboBox>
                </td>
                <td class="label">
                    <gr:Literal runat="server" ID="uxPassportEndDateLabel" Text="Thời hạn" />
                </td>
                <td class="input">
                    <gr:GuruDatePicker ID="uxPassportEndDate" runat="server">
                    </gr:GuruDatePicker>
                </td>
            </tr>
        </table>
    </div>
    <gr:Validator runat="server" ValidationFunction="ValidateCustomerInfo" MessageType="AlertBox">
        <Items>
            <gr:BasicValidationItem ControlToValidateID="uxCustomerName" Rule="Required"/>
            <gr:BasicValidationItem ControlToValidateID="uxEmail" Rule="Email"/>
            <gr:BasicValidationItem ControlToValidateID="uxPhone" Rule="StringAccept" Pattern="0123456789-()"/>
            <gr:BasicValidationItem ControlToValidateID="uxSocialID" Rule="StringAccept" Pattern="0123456789"/>
        </Items>
    </gr:Validator>
   
  
</gr:Container>

